package com.xyb.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserInfo {
    private String token;
    private boolean isTmp;  //是否临时登录
    private String tmpType; //code,wechart,qq,alipay,gitee,github
    private InnerUserInfo userInfo;            //注册登录用户

    //private VerifyCodeUser verifyCodeUser;  //验证码登录用户
    //private WeChartUser weChartUser;        //微信登录用户
    //private QQUser qqUser;                  //QQ登录用户
    private GiteeUser giteeUser;              //Gitee登录用户
    //private GithubUser githubUser;          //Github登录用户
    //private AliPayUser aliPayUser;          //支付宝登录用户

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class InnerUserInfo {
        public long userId;
        public String userName;
        public String userNickName;
        public String iphoneNo;
        private String email;
        private String headPortraitUrl;
        private int status;
        private Date createTime;
    }
}
